package example;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class ArithmeticList {
	private List<Integer> list;
	private double dob;
	
	//constructor
	public ArithmeticList() {
		list = new ArrayList<Integer>();
	}
	
	//settor - a
	public List<Integer> getL() {
		return list;
	}
	
	//gettor - a
	public void setL(List<Integer> a2) {
		list = a2;
	}
	
	//tao list
	public void enterDataL() {
		int n = 0;
		for(int i = 0; i < 15; i++) {
			Scanner scanner = new Scanner(System.in);
			System.out.print("List " + i + ": ");
			n = scanner.nextInt();
			list.add(n);
		}
		
	}
	
	//in list
	public void printDataL() {
		System.out.print("List vua nhap: ");
		for(int i = 0; i < 15; i++) {
			System.out.print(list.get(i) + "  ");
		}
	}
	
	//sap xep list theo thu tu giam dan
	public void sortDecreaseDataL() {
		System.out.print("List giam dan: ");
		
		int temp = 0;
		for(int i = 0; i < 15; i++) {
			for(int j = i + 1; j < 15; i++) {
				if(list.get(i) < list.get(j)) {
					
				}
			}
		}
	}
}
